import request from "@/utils/request";
/**
 * GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id} 获取当前商品详细属性
 */
export const reqGetAttrInfoList = (category1Id, category2Id, category3Id) => {
  return request.get(
    `/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`
  );
};
/**
 * DELETE /admin/product/deleteAttr/{attrId}
    deleteAttr 删除某一条属性列表
 */
export const reqDeleteAttr = (attrId) => {
  return request.delete(`/admin/product/deleteAttr/${attrId}`);
};
/**
 * POST /admin/product/saveAttrInfo 新增或修改某一条属性
 */
export const reqAddOrUpdateAttr = (attrInfo)=>{
  return request.post("/admin/product/saveAttrInfo",attrInfo)
}